package com.hziee.graduate.ticket.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.api.ApiController;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hziee.graduate.ticket.dto.R;
import com.hziee.graduate.ticket.entity.History;
import com.hziee.graduate.ticket.service.CinemaService;
import com.hziee.graduate.ticket.service.HistoryService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * (History)表控制层
 *
 * @author makejava
 * @since 2022-09-06 15:27:02
 */
@RestController
@RequestMapping("history")
public class HistoryController  {
    @Resource
    HistoryService historyService;

    @GetMapping("addARecord/{movieId}/{userId}")
    public R<Object> addARecord(@PathVariable("movieId") Long movieId, @PathVariable("userId") Long userId) {
        return historyService.addARecord(movieId,userId);
    }

}

